class CustomDataSource extends Cesium.CustomDataSource {
	constructor(arg) {
		super(arg);
		this._id = arg.id;
		this._name = arg.name;
		this._type = arg.type;

		// var _this=this;
		// this.viewer.dataSources.add(VFG.Polyline.Layers);
		// this.viewer.scene.primitives.add(VFG.Polygon.Layers);//面
		// this.viewer.scene.primitives.add(VFG.Model.Layers);//模型图层
		// this.viewer.scene.primitives.add(VFG.Feature.Layers);//单体图层
		// this.viewer.scene.primitives.add(VFG.Point.LabelCollection);
		// this.viewer.scene.primitives.add(VFG.Point.PointPrimitiveCollection);
		// this.viewer.scene.primitives.add(VFG.Point.BillboardCollection);
		// this.viewer.scene.debugShowFramesPerSecond = false;
	}
	get id() {
		return this._id;
	}
	get type() {
		return this._type;
	}
	set type(type) {
		this._type = type;
	}
	add(entity) {
		return this.entities.add(entity);
	}
	contains(entity) {
		return this.entities.contains(entity);
	}
	getById(id) {
		return this.entities.getById(id);
	}
	getOrCreateEntity(id) {}
	remove(entity) {
		return this.entities.remove(entity);
	}
	removeAll() {
		return this.entities.removeAll();
	}
	removeById(id) {
		return this.entities.removeById(id);
	}
}
export {
	CustomDataSource
}
